﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace FileEfCore.FileInfo;

[Table("FileStorageRecord")]
public class FileStorageRecord
{

    [Key]
    public Guid FileStorageRecordOID { get; set; }

    public string ID { get; set; }

    public string Caption { get; set; }

    public string Actualfilename { get; set; }

    public string FileStoragePath { get; set; }

    public string FileExtension { get; set; }

    public string? PreviewfilePath { get; set; }

    public DateTime SYS_Created { get; set; }

    public bool Isiteffective { get; set; }

    // public string? DownloadServiceAddress { get; set; }
    //
    // public int? DownloadServicePort { get; set; }
    //
    // public string? UploadServiceAddress { get; set; }
    //
    // public int? UploadServicePort { get; set; }
    //
    // public string? StorageID { get; set; }
    //
    // public string? Storageprotocol { get; set; }
    //
    // public string? StorageServiceAddress { get; set; }
    //
    // public int? StorageServicePort { get; set; }

    public string? Version { get; set; }

    public Guid ParentOID { get; set; }

    public DateTime SYS_LAST_UPD { get; set; }

    public string FileHash { get; set; }

    public string FileSize { get; set; }
    
    public string? FileServerRegistration_ID { get; set; }

}